package com.star.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Star
 * @since 2021-04-21
 */
@TableName("tb_city")
public class City extends Model<City> {

    private static final long serialVersionUID = 1L;

    /**
     * 城市编号
     */
    @TableId(value = "city_id", type = IdType.AUTO)
    private Integer cityId;
    /**
     * 城市名字
     */
    private String cityName;
    /**
     * 省份代号
     */
    private String proCode;


    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.cityId;
    }

    @Override
    public String toString() {
        return "City{" +
        ", cityId=" + cityId +
        ", cityName=" + cityName +
        ", proCode=" + proCode +
        "}";
    }
}
